import request from '@/utils/request'

export function fetchMarketApiLogList(data) {
  return request({
    url: '/system/marketapilog/MarketApiLog/list',
    method: 'post',
    data
  })
}

export function getMarketApiLog(id) {
  return request({
    url: '/system/marketapilog/MarketApiLog/detail/' + id,
    method: 'get'
  })
}

export function createMarketApiLog(data) {
  return request({
    url: '/system/marketapilog/MarketApiLog/add',
    method: 'post',
    data
  })
}

export function updateMarketApiLog(data) {
  return request({
    url: '/system/marketapilog/MarketApiLog/update',
    method: 'post',
    data
  })
}

export function deleteMarketApiLog(ids) {
  return request({
    url: '/system/marketapilog/MarketApiLog/delete',
    method: 'post',
    data: { ids }
  })
}

export function exportMarketApiLog(data) {
  return request({
    url: '/system/marketapilog/MarketApiLog/export',
    method: 'post',
    data
  })
}
